'use strict';

// Modules
var path = require('path');

var config = {

  // Your site title (format: page_title - site_title)
  site_title: '成享软件知识库',

  // The base URL of your site (can use %base_url% in Markdown files)
  base_url: '',

  // Used for the "Get in touch" page footer link
  support_email: 'zedong.jiang@sysssc.com',

  // Footer Text / Copyright
  copyright: 'Copyright &copy; ' + new Date().getFullYear() + ' - <a href="http://raneto.com">Powered by Raneto</a>',

  // Excerpt length (used in search)
  excerpt_length: 400,

  // The meta value by which to sort pages (value should be an integer)
  // If this option is blank pages will be sorted alphabetically
  page_sort_meta: 'sort',

  // Should categories be sorted numerically (true) or alphabetically (false)
  // If true category folders need to contain a "sort" file with an integer value
  category_sort: true,

  // Controls behavior of home page if meta ShowOnHome is not present. If set to true
  // all categories or files that do not specify ShowOnHome meta property will be shown
  show_on_home_default: true,

  // Which Theme to Use?
  theme_dir  : path.join(__dirname, '..', 'themes'),
  theme_name : 'default',

  // Specify the path of your content folder where all your '.md' files are located
  // Fix: Needs trailing slash for now!
  // Fix: Cannot be an absolute path
  content_dir : '/data/content/',

  // Where is the public directory or document root?
  public_dir  : path.join(__dirname, '..', 'themes', 'default', 'public'),

  // The base URL of your images folder,
  // Relative to config.public_dir
  // (can use %image_url% in Markdown files)
  image_url: '/images',

  // Add your analytics tracking code (including script tags)
  analytics: '',

  // Set to true to enable the web editor
  allow_editing : true,

  // Set to true to enable HTTP Basic Authentication
  authentication : true,

  // If editing is enabled, set this to true to only authenticate for editing, not for viewing
  authentication_for_edit: true,

  // If authentication is enabled, set this to true to enable authentication for reading too
  authentication_for_read: true,

  // Google OAuth
  googleoauth: false,
  oauth2 : {
    client_id: 'GOOGLE_CLIENT_ID',
    client_secret: 'GOOGLE_CLIENT_SECRET',
    callback: 'http://localhost:3000/auth/google/callback',
    hostedDomain: 'google.com'
  },
  secret: 'someCoolSecretRightHere',

  credentials    : [
    {
      username : 'xiuli.cheng',
      password : '123456'
    },
    {
      username : 'bowen.tan',
      password : '123456'
    },
    {
      username : 'hongxia.gao',
      password : '123456'
    },
    {
      username : 'jianye.pan',
      password : '123456'
    },
    {
      username : 'yunlong.wang',
      password : '123456'
    },
    {
      username : 'yang.li',
      password : '123456'
    },
    {
      username : 'hope.yang',
      password : '123456'
    },
    {
      username : 'zongbin.yan',
      password : '123456'
    },
    {
      username : 'jun.zhang',
      password : '123456'
    },
    {
      username : 'heng.luo',
      password : '123456'
    },
    {
      username : 'haozhen.li',
      password : '123456'
    },
    {
      username : 'ge.lan',
      password : '123456'
    },
    {
      username : 'dehui.liu',
      password : '123456'
    },
    {
      username : 'bo.chen',
      password : '123456'
    },
    {
      username : 'upon.pang',
      password : '123456'
    },
    {
      username : 'tao.zhou',
      password : '123456'
    },
    {
      username : 'ruixi.ye',
      password : '123456'
    },
    {
      username : 'mingchi.zhang',
      password : '123456'
    },
    {
      username : 'kevin.yang',
      password : '123456'
    },
    {
      username : 'kedong.zhao',
      password : '123456'
    },
    {
      username : 'junyu.li',
      password : '123456'
    },
    {
      username : 'junbo.xie',
      password : '123456'
    },
    {
      username : 'ya.he',
      password : '123456'
    },
    {
      username : 'xin.xiao',
      password : '123456'
    },
    {
      username : 'zehua.tong',
      password : '123456'
    },
    {
      username : 'zedong.jiang',
      password : '123456'
    },
    {
      username : 'qiang.wen',
      password : '123456'
    },
    {
      username : 'anmin.yang',
      password : '123456'
    },
    {
      username : 'li.qiao',
      password : '123456'
    },
    {
      username : 'cheng.jin',
      password : '123456'
    },
    {
      username : 'tingting.hao',
      password : '123456'
    },
    {
      username : 'birong.yang',
      password : '123456'
    },
    {
      username : 'qiguang.zhao',
      password : '123456'
    },
    {
      username : 'le.tao',
      password : '123456'
    },
    {
      username : 'jia.kou',
      password : '123456'
    },
    {
      username : 'yichao.zhao',
      password : '123456'
    },
    {
      username : 'huang.zhang',
      password : '123456'
    },
    {
      username : 'xingyan.wang',
      password : '123456'
    },
    {
      username : 'heshan.wang',
      password : '123456'
    },
    {
      username : 'guoqiang.yang',
      password : '123456'
    },
    {
      username : 'qingzhao.li',
      password : '123456'
    },
    {
      username : 'zhiquan.kong',
      password : '123456'
    },
    {
      username : 'yi.jiang',
      password : '123456'
    },
    {
      username : 'lei.han',
      password : '123456'
    },
    {
      username : 'weiyi.jiang',
      password : '123456'
    },
    {
      username : 'hao.li',
      password : '123456'
    },
    {
      username : 'yongcong.fan',
      password : '123456'
    },
    {
      username : 'na.you',
      password : '123456'
    },
    {
      username : 'kai.xu',
      password : '123456'
    },
    {
      username : 'yan.liu',
      password : '123456'
    },
    {
      username : 'jiong.cheng',
      password : '123456'
    },
    {
      username : 'yang.liu',
      password : '123456'
    },
    {
      username : 'qinghua.chen',
      password : '123456'
    },
    {
      username : 'xingcen.ye',
      password : '123456'
    },
    {
      username : 'chun.yang',
      password : '123456'
    },
    {
      username : 'jun.fang',
      password : '123456'
    },
    {
      username : 'yong.yang01',
      password : '123456'
    },
    {
      username : 'kai.li',
      password : '123456'
    },
    {
      username : 'depeng.liu',
      password : '123456'
    }
  ],

  locale: 'zh',

  // Support search with extra languages
  searchExtraLanguages: ['ru'],

  // Sets the format for datetime's
  datetime_format: 'Do MMM YYYY',

  // Set to true to render suitable layout for RTL languages
  rtl_layout: false,

  // Edit Home Page title, description, etc.
  home_meta : {
    // title       : 'Custom Home Title',
    // description : 'Custom Home Description'
  },

  // variables: [
  //   {
  //     name: 'test_variable',
  //     content: 'test variable'
  //   },
  //   {
  //     name: 'test_variable_2',
  //     content: 'test variable 2'
  //   }
  // ]

  table_of_contents: false

};
config.public_dir = path.join(__dirname, '..', 'themes', config.theme_name, 'public');

// Exports
module.exports = config;  
